package top.yongyan0624.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.yongyan0624.common.lang.ResultVO;
import top.yongyan0624.entity.Timeline;
import top.yongyan0624.service.TimelineService;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yongyan
 * @since 2021-05-17
 */
@RestController
public class TimelineController extends BaseController {

    @RequestMapping("/partyHistory/timeline")
    public ResultVO timeline(){
        List<Timeline> timelines = timelineService.list();

        return ResultVO.success(timelines);
    }
}
